package com.weishu.core.entity;

public enum PayPlanZdType {
    SFDBG("收房贷变更",1),
    TZBG("退租变更",2),
    PTZD("普通账单",3),
    XYJS("续约结算",4);


    private String name;
    private int index;

    private PayPlanZdType(String name, int index) {
        this.name = name;
        this.index = index;
    }

    // 普通方法
    public static String getName(int index) {
        for (PayPlanZdType c : PayPlanZdType.values()) {
            if (c.getIndex() == index) {
                return c.name;
            }
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

}
